package com.ym.medical.dao;

import com.ym.medical.domain.entity.CommentRecordEntity;
import com.ym.medical.domain.entity.LabelsEntity;
import com.ym.medical.domain.vo.CommentRecordListPcVO;
import com.ym.medical.domain.param.CommentRecordQueryParam;
import com.ym.medical.domain.vo.HotPointVo;
import com.ym.medical.domain.vo.PhoneOrderCommentRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;

/**
 * 评价记录Dao接口
 *
 * @author ym
 * @date 2020-08-20
 */
@Repository
public interface CommentRecordDao extends Mapper<CommentRecordEntity>{

    /**
     * 查询评价记录列表,PC专用不要轻易混用更改
     *
     * @param queryParam  评价记录查询参数
     * @return 评价记录集合
     */
    List<CommentRecordListPcVO> selectListPC(CommentRecordQueryParam queryParam);
    /**
     * 患者评论
     * @param currId
     * @param ioId
     * @return
     */
    PhoneOrderCommentRecord selectComment(
            @Param("currId") Long currId,
            @Param("ioId") Long ioId);

	/**
	 * 查询医生相关的热度标签值
	 *
	 * @param doctorId
	 * @return
	 */
	List<LabelsEntity> hotLabels(Long doctorId);

	/**
	 * 热度咨询统计
	 *
	 * @param doctorId
	 * @return
	 */
	long hotLabelsCount(Long doctorId);

	/**
	 * 热度咨询统计列表查询
	 *
	 * @param doctorId
	 * @return
	 */
	List<HotPointVo> hotLabelsOrders(Long doctorId, String toString);

	/***
	 * 查询医生被患者评价的信息
	 * @param doctId
	 * @return
	 */
	List<HotPointVo> selectCommentRecords(@Param("okay") String okay, @Param("doctId") Long doctId, @Param("tagStand") Long[] tagStand, @Param("tagCustom") Long[] tagCustom);
}
